package com.itheima.app.service;

import com.github.pagehelper.PageHelper;
import com.itheima.app.mapper.UserMapper;
import com.itheima.app.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
   private UserMapper userMapper;

    public List<User> findAll(){

        PageHelper.startPage(1,3);

        return userMapper.findAll();
    }

    public void save(){
        System.out.println("xxxxxxx");
    }
}
